package com.forenow.demo.demo15;

public class Test {
    public static void main(String[] args) {
        Animal a=new Fish();
        a.setCount(8);
        a.setLegs(0);
        a.setName("泡泡");
        Animal a1=new Tiger();
        a1.setName("泰哥");
        a1.setLegs(4);
        a1.setCount(45);
        Tiger t=new SouthEastTiger();
        t.setCount(54);
        t.setLegs(4);
        t.setName("东北虎");
        System.out.println(a.getName()+"  "+a.getCount()+" "+a.getLegs());
        System.out.println(a1.getName()+"  "+a1.getCount()+" "+a1.getLegs());
        System.out.println(t.getName()+"  "+t.getCount()+" "+t.getLegs());
    }
}
